package day4.zy1;

import java.io.File;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("输入要删除的路径");
        String s = in.next();
        File f = new File(s);
        if (f.exists()==true){
            f.delete();
        }else {
            System.out.println("找不到文件");
        }
    }
}
